<%@ tag language="java" pageEncoding="UTF-8" body-content="scriptless" trimDirectiveWhitespaces="true"%>
<%@ attribute name="id" type="java.lang.String" required='true' description="用于显示的span id"%>
<%@ attribute name="staffId" type="java.lang.String" required='true' description="员工编号"%>
<%@ attribute name="type" type="java.lang.String" required='false' description="结果类型，'name'：只显示姓名，默认；'nameId':组合显示姓名编号"%>
<%@ attribute name="className" type="java.lang.String" required='false' description="class属性值"%>
<span id='${id}'>
	<jsp:doBody/>
</span>
<script type="text/javascript">
(function(){
	var spanId = "${id}";
	var staffId = "${staffId}";
	var type = "${type}"==""?"name":"${type}";
	var className = "${className}";
	new TansStaffNameById(spanId,staffId,type,className)
});
</script>